package com.zsx.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component("teacher")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher {
    @Value("1")
    private int id;
    @Value("王老师")
    private String name;
    @Value("语文")
    private String course;
}
